<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE HTML>
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.5.2.js"></script>
	<script type="text/javascript" src="js/script.js"></script>
	<script type="text/javascript">var basePath='<%=basePath%>';</script>
  </head>
  
  <body>
    <div>
    	<form action="${pageContext.request.contextPath }/register" method="post">
    		<input name="nickname" type="text">
    		<input name="password" type="password">
    		<input type="submit" value="注册">
    	</form>
    </div>
  </body>
</html>
